BEGIN {count = 0}
/^Motif [0-9]+$/ 	{count = 0}
/[^AGCT]+/			{count++}
/^MAP Score:/		{printf "%s\t%s\n", $3, count}
